import counter_data as counter
import os

#global variables
MY_LOL_USER_NAME = "dannylol3"
MY_ID = "27365916"
LOCAL_DIR = r"C:\Users\Danny\Documents\lol_team_tool"
SUMMONERS_DIR = os.path.join(LOCAL_DIR, "summoners")
CACHE_DIR = os.path.join(LOCAL_DIR, "cache")
MATCH_LIST_DIR = os.path.join(LOCAL_DIR, "match_lists")
COUNTERS = counter.COUNTERS
CHAMPS = ['thresh', 'nami','vi', 'evelynn', 'zed', 'nunu', 'swain', 'taric', 'nasus', 'graves', 'nocturne', 'shaco', 'leesin', 'draven', 'nidalee', 'kassadin', 'sona', 'monkeyking', 'cassiopeia', 'skarner', 'malzahar', 'amumu', 'khazix', 'olaf', 'sivir', 'riven', 'nami', 'kogmaw', 'gangplank', 'syndra', 'poppy', 'volibear', 'kennen', 'ryze', 'gragas', 'garen', 'diana', 'karthus', 'jayce', 'sion', 'elise', 'alistar', 'vayne', 'ezreal', 'fiddlesticks', 'lux', 'fiora', 'twistedfate', 'anivia', 'drmundo', 'tryndamere', 'hecarim', 'darius', 'heimerdinger', 'jax', 'jarvaniv', 'ashe', 'malphite', 'irelia', 'annie', 'twitch', 'kayle', 'janna', 'blitzcrank', 'talon', 'leblanc', 'xinzhao', 'katarina', 'chogath', 'shen', 'warwick', 'fizz', 'missfortune', 'renekton', 'viktor', 'brand', 'corki', 'maokai', 'yorick', 'urgot', 'tristana', 'galio', 'vladimir', 'orianna', 'masteryi', 'soraka', 'varus', 'caitlyn', 'veigar', 'rengar', 'nautilus', 'lulu', 'pantheon', 'trundle', 'ahri', 'shyvana', 'udyr', 'zyra', 'mordekaiser', 'zilean', 'rammus', 'rumble', 'morgana', 'wukong', 'sejuani', 'xerath', 'ziggs', 'singed', 'karma', 'akali', 'leona', 'teemo']

CHAMP_ROLE = {'thresh':'support', 'vi' : 'm-dps', 'evelynn': 'm-dps', 'zed': 'm-dps', 'nunu': 'fighter', 'swain': 'mage', 'taric': 'support', 'nasus': 'fighter', 'graves': 'r-dps', 'nocturne': 'm-dps', 'shaco': 'm-dps', 'leesin': 'fighter', 'draven': 'r-dps', 'renekton': 'fighter', 'nidalee': 'fighter', 'kassadin': 'mage', 'sona': 'support', 'cassiopeia': 'mage', 'skarner': 'fighter', 'malzahar': 'mage', 'amumu': 'tank', 'khazix': 'm-dps', 'olaf': 'fighter', 'sivir': 'r-dps', 'riven': 'fighter', 'nami': 'support', 'kogmaw': 'r-dps', 'gangplank': 'fighter', 'syndra': 'mage', 'poppy': 'fighter', 'volibear': 'fighter', 'kennen': 'mage', 'ryze': 'mage', 'gragas': 'fighter', 'garen': 'fighter', 'diana': 'm-dps', 'karthus': 'mage', 'jayce': 'fighter', 'sion': 'fighter', 'elise': 'mage', 'alistar': 'tank', 'leblanc': 'mage', 'ezreal': 'r-dps', 'fiddlesticks': 'mage', 'lux': 'mage', 'fiora': 'm-dps', 'twistedfate': 'mage', 'darius': 'fighter', 'kayle': 'support', 'hecarim': 'fighter', 'anivia': 'mage', 'yorick': 'fighter', 'jax': 'm-dps', 'jarvaniv': 'fighter', 'ashe': 'r-dps', 'malphite': 'fighter', 'irelia': 'fighter', 'annie': 'mage', 'twitch': 'r-dps', 'tryndamere': 'm-dps', 'janna': 'support', 'blitzcrank': 'tank', 'talon': 'm-dps', 'vayne': 'r-dps', 'xinzhao': 'm-dps', 'katarina': 'm-dps', 'chogath': 'tank', 'shen': 'tank', 'drmundo': 'fighter', 'caitlyn': 'r-dps', 'missfortune': 'r-dps', 'morgana': 'mage', 'viktor': 'mage', 'brand': 'mage', 'warwick': 'fighter', 'corki': 'r-dps', 'maokai': 'tank', 'heimerdinger': 'mage', 'urgot': 'r-dps', 'tristana': 'r-dps', 'galio': 'tank', 'vladimir': 'mage', 'orianna': 'mage', 'masteryi': 'm-dps', 'soraka': 'support', 'varus': 'r-dps', 'fizz': 'mage', 'veigar': 'mage', 'rengar': 'm-dps', 'nautilus': 'tank', 'lulu': 'support', 'pantheon': 'm-dps', 'trundle': 'fighter', 'ahri': 'mage', 'shyvana': 'fighter', 'udyr': 'fighter', 'zyra': 'mage', 'mordekaiser': 'mage', 'zilean': 'mage', 'rammus': 'tank', 'rumble': 'mage', 'wukong': 'fighter', 'monkeyking': 'fighter', 'sejuani': 'tank', 'xerath': 'mage', 'ziggs': 'mage', 'singed': 'tank', 'karma': 'support', 'akali': 'm-dps', 'leona': 'tank', 'teemo': 'r-dps'}

CHAMP_TAGS = {
	'thresh':["support"],
	'nami': ["support"],
	'evelynn': ['assassin', 'stealth', 'melee'], 
	'zed': ['assassin', 'melee'], 
	'nunu': ['tank', 'melee', 'jungler', 'support'], 
	'swain': ['mage', 'ranged'], 
	'taric': ['tank', 'support', 'melee',], 
	'nasus': ['fighter', 'tank', 'pusher', 'melee',], 
	'graves': ['carry', 'ranged'], 'jax': ['fighter', 'melee'],
	'shaco': ['assassin', 'stealth', 'melee'],
	'leesin': ['assassin', 'melee', 'fighter', 'jungler'],
	'draven': ['carry', 'ranged'],
	'renekton': ['fighter', 'melee'],
	'nidalee': ['support', 'pusher'],
	'kassadin': ['assassin', 'mage', 'melee'],
	'sona': ['support', 'ranged',],
	'vladimir': ['fighter', 'mage', 'ranged'],
	'cassiopeia': ['mage', 'ranged'],
	'skarner': ['fighter', 'jungler', 'melee'],
	'malzahar': ['mage', 'ranged'],
	'amumu': ['tank', 'melee', 'jungler'],
	'khazix': ['assassin', 'melee', 'jungler', 'stealth'],
	'olaf': ['fighter', 'melee', 'jungler'],
	'irelia': ['assassin', 'melee'],
	'riven': ['fighter', 'melee'],
	'kogmaw': ['ranged', 'carry'],
	'gangplank': ['carry', 'melee'],
	'syndra': ['mage', 'ranged'],
	'poppy': ['fighter', 'assassin', 'melee'],
	'volibear': ['tank', 'fighter', 'jungler', 'melee'],
	'kennen': ['mage', 'ranged'],
	'ryze': ['mage', 'ranged',],
	'gragas': ['fighter', 'melee'],
	'garen': ['fighter', 'melee',],
	'diana': ['fighter', 'jungler', 'melee', 'mage'],
	'karthus': ['mage', 'ranged'],
	'jayce': ['fighter', 'melee', 'ranged'],
	'sion': ['fighter', 'melee', 'jungler'],
	'elise': ['mage', 'jungler', 'ranged', 'melee'],
	'alistar': ['tank', 'pusher', 'melee', 'jungler'],
	'vayne': ['carry', 'ranged', 'assassin', 'stealth'],
	'ezreal': ['carry', 'ranged'],
	'fiddlesticks': ['mage', 'jungler', 'ranged'],
	'lux': ['mage', 'support', 'ranged'],
	'fiora': ['carry', 'melee'],
	'twistedfate': ['assassin', 'pusher', 'ranged'],
	'darius': ['fighter', 'melee'],
	'drmundo': ['fighter', 'melee', 'jungler'],
	'kayle': ['fighter', 'support'],
	'hecarim': ['fighter', 'jungler', 'melee', 'tank'],
	'anivia': ['mage', 'ranged'],
	'heimerdinger': ['mage', 'pusher', 'ranged'],
	'nocturne': ['assassin', 'melee'],
	'jarvaniv': ['fighter', 'melee'],
	'ashe': ['carry', 'ranged'],
	'malphite': ['tank', 'melee', 'jungler'],
	'annie': ['mage', 'ranged',],
	'twitch': ['carry', 'stealth', 'ranged'],
	'tryndamere': ['fighter', 'melee'],
	'janna': ['support', 'ranged'],
	'blitzcrank': ['support','tank', 'melee'],
	'talon': ['assassin', 'melee'],
	'leblanc': ['assassin', 'mage', 'ranged'],
	'xinzhao': ['fighter', 'assassin', 'melee', 'jungler'],
	'katarina': ['assassin', 'melee',],
	'chogath': ['fighter', 'mage', 'melee', 'jungler'],
	'shen': ['tank', 'fighter', 'melee'],
	'warwick': ['fighter', 'jungler', 'melee'],
	'caitlyn': ['carry', 'ranged'],
	'missfortune': ['ranged', 'carry'],
	'morgana': ['mage', 'support', 'ranged'],
	'viktor': ['mage', 'ranged', 'pusher'],
	'brand': ['mage', 'ranged'],
	'corki': ['ranged', 'carry'],
	'maokai': ['tank', 'pusher', 'melee', 'jungler', 'support'],
	'yorick': ['fighter', 'pusher', 'melee'],
	'urgot': ['fighter', 'ranged'],
	'tristana': ['carry', 'ranged',],
	'galio': ['tank', 'support', 'melee'],
	'sivir': ['carry', 'pusher', 'ranged',],
	'orianna': ['mage', 'ranged'],
	'masteryi': ['carry', 'melee',],
	'soraka': ['support', 'ranged',],
	'varus': ['carry', 'ranged'],
	'fizz': ['fighter', 'assassin', 'melee'],
	'veigar': ['mage', 'ranged'],
	'rengar': ['fighter', 'jungler', 'melee', 'stealth'],
	'nautilus': ['tank', 'melee'],
	'lulu': ['support', 'ranged'],
	'pantheon': ['assassin', 'melee'],
	'trundle': ['fighter', 'melee'],
	'ahri': ['assassin', 'mage', 'ranged'],
	'shyvana': ['fighter', 'melee', 'jungler'],
	'udyr': ['fighter', 'melee', 'jungler'],
	'zyra': ['mage', 'pusher', 'ranged'],
	'mordekaiser': ['fighter', 'pusher', 'melee'],
	'zilean': ['mage', 'support', 'ranged'],
	'rammus': ['tank', 'melee', 'jungler'],
	'rumble': ['mage', 'melee', 'pusher'],
	'wukong': ['fighter', 'melee', 'stealth'],
	'monkeyking': ['fighter', 'melee', 'stealth'],
	'sejuani': ['tank', 'jungler', 'melee'],
	'xerath': ['mage', 'ranged'],
	'ziggs': ['mage', 'ranged', 'pusher'],
	'singed': ['fighter', 'melee', 'tank'],
	'karma': ['support', 'ranged'],
	'akali': ['assassin', 'melee', 'stealth'],
	'leona': ['support', 'tank', 'melee'],
	'teemo': ['support', 'stealth', 'ranged'],
	'vi': ['carry'],
	}

EXEMPLARY_CHAMPS_FOR_TAG = {
"fighter" : ['leesin', 'vladimir', 'olaf', 'riven', 'poppy', 'volibear', 'gragas', 'garen', 'diana', 'jayce', 'sion', 'drmundo', 'hecarim', 'darius', 'yorick', 'jax', 'jarvaniv', 'xinzhao', 'chogath', 'warwick', 'fizz', 'renekton', 'urgot', 'rengar', 'trundle', 'shyvana', 'udyr', 'mordekaiser', 'wukong', 'singed'],
"pusher" : ['nasus', 'nidalee', 'alistar', 'yorick', 'viktor', 'maokai', 'heimerdinger', 'mordekaiser', 'rumble'],
"support" : ['taric', 'sona', 'janna', 'galio', 'soraka', 'lulu', 'zilean'],
"ranged" : ['swain', 'graves', 'draven', 'sona', 'vladimir', 'cassiopeia', 'malzahar', 'kogmaw', 'syndra', 'kennen', 'ryze', 'karthus', 'jayce', 'elise', 'leblanc', 'ezreal', 'fiddlesticks', 'lux', 'twistedfate', 'anivia', 'ashe', 'annie', 'twitch', 'janna', 'vayne', 'missfortune', 'viktor', 'brand', 'corki', 'heimerdinger', 'urgot', 'tristana', 'sivir', 'orianna', 'soraka', 'varus', 'caitlyn', 'veigar', 'lulu', 'ahri', 'zyra', 'zilean', 'morgana', 'xerath', 'ziggs', 'karma', 'teemo'],
"jungler" : ['skarner', 'hecarim', 'warwick', 'rengar', 'sejuani', 'maokai', 'xinzhao', 'leesin', 'rengar'],
"melee" : ['evelynn', 'zed', 'nunu', 'taric', 'nasus', 'nocturne', 'shaco', 'leesin', 'kassadin', 'skarner', 'amumu', 'khazix', 'olaf', 'irelia', 'riven', 'gangplank', 'poppy', 'volibear', 'gragas', 'garen', 'diana', 'jayce', 'sion', 'elise', 'alistar', 'fiora', 'drmundo', 'tryndamere', 'hecarim', 'darius', 'yorick', 'jax', 'jarvaniv', 'malphite', 'blitzcrank', 'talon', 'xinzhao', 'katarina', 'chogath', 'shen', 'warwick', 'fizz', 'renekton', 'maokai', 'galio', 'masteryi', 'rengar', 'nautilus', 'pantheon', 'trundle', 'shyvana', 'udyr', 'mordekaiser', 'rammus', 'rumble', 'wukong', 'sejuani', 'singed', 'akali', 'leona'],
"stealth" : ['evelynn', 'shaco', 'twitch', 'vayne', 'teemo'],
"carry" : ['graves', 'draven', 'kogmaw', 'gangplank', 'ezreal', 'fiora', 'ashe', 'twitch', 'vayne', 'missfortune', 'corki', 'tristana', 'sivir', 'masteryi', 'varus', 'caitlyn'],
"tank" : ['singed', 'taric', 'amumu', 'volibear', 'alistar', 'shen', 'maokai', 'galio', 'nautilus', 'rammus', 'sejuani', 'leona'],
"assassin" : ['evelynn', 'zed', 'nocturne', 'shaco', 'leesin', 'kassadin', 'khazix', 'irelia', 'leblanc', 'twistedfate', 'talon', 'vayne', 'xinzhao', 'katarina', 'pantheon', 'ahri', 'akali'],
"mage" : ['swain', 'kassadin', 'vladimir', 'cassiopeia', 'malzahar', 'syndra', 'kennen', 'ryze', 'diana', 'karthus', 'elise', 'leblanc', 'fiddlesticks', 'lux', 'anivia', 'annie', 'chogath', 'viktor', 'brand', 'heimerdinger', 'orianna', 'veigar', 'ahri', 'zyra', 'zilean', 'rumble', 'morgana', 'xerath', 'ziggs'],
}

ALL_TAGS = ['fighter', 'ranged', 'support', 'pusher', 'jungler', 'melee', 'stealth', 'carry', 'tank', 'assassin', 'mage']

ROLES = ["dps", "tank", "fighter", "support", "mage"]

ROLE_HIGH_RATING = {'tank': 279.6, 'support': 541.36, 'dps': 705.22, 'fighter': 381.24, 'mage': 462.34}
ROLE_LOW_RATING ={'tank': 14.460986780677183, 'support': 102.34, 'dps': 55.255570194268543, 'fighter': 58.52, 'mage': 40.0}
ROLE_AVE_RATING ={'tank': 98.232993853975614, 'support': 235.04407018260119, 'dps': 259.29580633831046, 'fighter': 159.12870247482095, 'mage': 211.23486459059404}

#TAG_AVE = {'tank': 81.05482590089288, 'pusher': 136.00709820519842, 'support': 2.1941407053448301, 'ranged': 219.57682040942112, 'jungler': 139.76562220302071, 'melee': 159.28749212178295, 'stealth': 255.19418628635248, 'carry': 281.23592098221013, 'fighter': 185.18343104015773, 'assassin': 214.68999952934939, 'mage': 228.45766099932655}
#TAG_HIGH = {'pusher': 510.97627118644061, 'melee': 466.76923076923083, 'carry': 690.20540540540537, 'tank': 248.77558139534884, 'mage': 588.18846153846152, 'fighter': 501.98976293103448, 'support': 4.2857142857142856, 'ranged': 543.96439722249579, 'jungler': 529.20000000000005, 'stealth': 669.59767441860481, 'assassin': 603.83673469387759}
#TAG_LOW = {'pusher': 7.3600000000000012, 'melee': 3.3584905660377364, 'carry': 42.922058823529404, 'tank': 3.3584905660377364, 'mage': 18.418943994601886, 'fighter': 23.040506329113921, 'support': 0.87512705096558741, 'ranged': 6.1289999999999996, 'jungler': 16.827999999999996, 'stealth': 82.950971611355456, 'assassin': 23.040506329113921}

TAG_AVE = {'pusher': 143.3078442420188, 'melee': 184.01942683047565, 'carry': 294.7204396115448, 'tank': 87.072822095034326, 'mage': 241.38312650431754, 'fighter': 207.72641739987742, 'support': 2.3167011389190759, 'ranged': 248.36593274365018, 'jungler': 153.22828109780792, 'stealth': 268.48601253797221, 'assassin': 234.28729989265631}
TAG_HIGH = {'pusher': 685.2705882352941, 'melee': 768.62903225806451, 'carry': 832.70249999999999, 'tank': 405.26476190476188, 'mage': 596.16571862787669, 'fighter': 857.29598214285716, 'support': 6.7307310340184152, 'ranged': 832.70249999999999, 'jungler': 412.85808270676694, 'stealth': 748.12067669172927, 'assassin': 768.62903225806451}
TAG_LOW = {'pusher': 6.2860465116279061, 'melee': 7.3915254237288126, 'carry': 66.05925925925925, 'tank': 6.2860465116279061, 'mage': 31.454545454545457, 'fighter': 39.858580648200487, 'support': 1.118421052631579, 'ranged': 4.5449999999999999, 'jungler': 30.083333333333329, 'stealth': 72.049999999999997, 'assassin': 47.149315068493145}
